template = "data remove entity @n[tag=faqv.villager_memory_wiper.target] Brain.memories.minecraft:{tag}"

tags = [
    "home",
    "job_site",
    "last_slept",
    "last_woken",
    "last_worked_at_poi",
    "meeting_point",
    "potential_job_site"
]

for tag in tags:
    print(template.format(tag=tag))
print()